package com.emre.daoGenerator.utils;

import java.beans.Introspector;
import java.util.Locale;

public class StringUtils 
{
	public static String convertToSentenceCase(String s)
	{
		String result = s.substring(0, 1).toUpperCase(Locale.ENGLISH) + s.substring(1);
		return result;
	}
	
	public static String getterMethodName(String propertyName)
	{
		return "get" + convertToSentenceCase(propertyName);
	}
	
	public static String setterMethodName(String propertyName)
	{
		return "set" + convertToSentenceCase(propertyName);
	}
}
